package com.weixin.paleituo.adapter;

import android.content.Context;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.weixin.paleituo.R;
import com.weixin.paleituo.base.ComAdapter;
import com.weixin.paleituo.bean.ChosenGoodsClassListBean;
import com.weixin.paleituo.help.ViewHolder;

import java.util.List;

/**
 * Author yichao
 * Time  2018/3/15 14:51
 * Dest  商城主页
 */

public class GoodsHomeGridAdapter  extends ComAdapter<ChosenGoodsClassListBean> {
    public GoodsHomeGridAdapter(Context mContext, List<ChosenGoodsClassListBean> mData) {
        super(mContext, mData, R.layout.item_image);
    }
    @Override
    public void convert(ViewHolder holder, ChosenGoodsClassListBean item, int position) {
        ImageView imageView= holder.getItemView(R.id.iv_imag_item_image);
        Glide.with(mContext).load(item.getImg()).into(imageView);
    }
}
